import math


def big(a, b, c):
    x1 = (- b + math.sqrt(b**2 - 4*a*c))/2*a
    x2 = (- b - math.sqrt(b**2 - 4*a*c))/2*a
    print(f"方程有两个不相等的实数根：x1 = {x1},x2 = {x2}")


def den_yu(a, b, c):
    x = (- b + math.sqrt(b**2 - 4*a*c))/2*a
    print(f"方程有两个相等的实数根：x = {x}")


def small(a, b, c):
    print("方程无实数根！")


def jie(a, b, c):
    k = b**2 - 4*a*c
    if k > 0:
        big(a, b, c)
    elif k == 0:
        den_yu(a, b, c)
    elif k < 0:
        small(a, b, c)


A, B, C = map(float, input("请输入a, b, c的值：").split(","))
jie(A, B, C)
